import { MidwayConfig } from '@midwayjs/core';

export default {
  // use for cookie sign key, should change to your own and keep security
  keys: '1717839728392_7957',
  jwt: { secret: 'dr-oms', expiresIn: '2d' },
  koa: {
    port: 7001,
  },
  upload: {
    whitelist: [
      '.jpg',
      '.jpeg',
      '.png',
      '.gif',
      '.bmp',
      '.wbmp',
      '.webp',
      '.tif',
      '.psd',
      '.svg',
      '.js',
      '.jsx',
      '.json',
      '.css',
      '.less',
      '.html',
      '.htm',
      '.xml',
      '.pdf',
      '.zip',
      '.gz',
      '.tgz',
      '.gzip',
      '.mp3',
      '.mp4',
      '.avi',
      '.csv',
      '.xlsx',
      '.xls',
    ],
    match: /\/api\//,
  },
} as MidwayConfig;
